package request

type SendSmsReq struct {
	Mobile string `form:"mobile" json:"mobile" binding:"required"`
}

type RegisterReq struct {
	Mobile   string `form:"mobile" json:"mobile" binding:"required"`
	SmsCode  string `form:"smsCode" json:"smsCode" binding:"required"`
	Password string `form:"password" json:"password" binding:"required"`
}

type LoginReq struct {
	Mobile  string `form:"mobile" json:"mobile" binding:"required"`
	SmsCode string `form:"smsCode" json:"smsCode" binding:"required"`
}
type AddVideoReq struct {
	// binding:"required"修饰的字段，若接收为空值，则报错，是必须字段
	Title    string `form:"title" json:"title"  binding:"required"`
	Briefly  string `form:"briefly" json:"briefly"  `
	TypesId  int64  `form:"typesId" json:"typesId" binding:"required"`
	CoverUrl string `form:"coverUrl" json:"coverUrl" `
	PlayUrl  string `form:"playUrl" json:"playUrl"  binding:"required"`
	Ads      int64  `form:"ads" json:"ads" binding:"required"`
	Channel  int64  `form:"channel" json:"channel" binding:"required"`
}

type CheckVideoReq struct {
	VideoId     int64  `form:"videoId" json:"videoId" binding:"required"`
	CheckStatus int64  `form:"checkStatus" json:"checkStatus" binding:"required"`
	CheckReason string `form:"checkReason" json:"checkReason" binding:"required"`
}

type VideoListReq struct {
	Page     int64 `form:"page" json:"page" `
	PageSize int64 `form:"pageSize" json:"pageSize" `
	Channel  int64 `form:"channel" json:"channel" `
	Types    int64 `form:"typesId" json:"typesId" `
	Ads      int64 `form:"ads" json:"ads" `
}

type SyncVideosToEsReq struct {
	VideoId int64 `form:"videoId" json:"videoId" binding:"required"`
}

type VideoInfoReq struct {
	VideoId int64 `form:"videoId" json:"videoId" binding:"required"`
}

type CreatePlayRecordReq struct {
	VideoId   int64  `form:"videoId" json:"videoId" binding:"required"`
	EpisodeId int64  `form:"episodeId" json:"episodeId" binding:"required"`
	UserId    int64  `form:"userId" json:"userId" binding:"required"`
	Seconds   string `form:"seconds" json:"seconds" binding:"required"`
}

type PlayRecordListReq struct {
	UserId int64 `form:"userId" json:"userId" binding:"required"`
}

type PlayRecordDelReq struct {
	UserId int64 `form:"userId" json:"userId" binding:"required"`
}

type TotalHotReq struct {
	VideoId int64 `form:"videoId" json:"videoId" binding:"required"`
}

type SyncToEsReq struct {
	VideoId int64 `form:"videoId" json:"videoId" `
}
